﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="WebApp.Management._Article.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <a href="./Create.aspx">创建</a>
    <asp:DropDownList ID="_ctlListCategory" runat="server" DataTextField="Caption" 
            DataValueField="Id" AutoPostBack="true" 
            onselectedindexchanged="_ctlListCategory_SelectedIndexChanged">
    </asp:DropDownList>
    </div>
    <div>
        <asp:Repeater ID="_ctlRepeater" runat="server">
        <HeaderTemplate>
            <table width="100%" border="1">
            <tr>
                <th>标题</th>
                <th>发布人</th>
                <th>发布时间</th>
                <th>顶置程度</th>
                <th>访问量</th>
                <th>&nbsp;</th>
            </tr>
        </HeaderTemplate>

        <ItemTemplate>
            <tr>
                <td>
                    <a href="Update.aspx?id=<%# Eval("Id") %>"><%# Eval("Title") %></a>
                </td>
                <td>
                    <%# Eval("Author") %>
                </td>
                <td>
                    <%# Eval("PostedDate") %>
                </td>
                <td>
                    <%# Eval("TopPoint") %>
                </td>
                <td>
                    <%# Eval("VisitPoint") %>
                </td>
                <td>
                    <a href="./Delete.aspx?id=<%# Eval("Id") %>" onclick="return confirm('是否确定要删除?');">删除</a>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
